package com.wechat.service;



import com.wechat.entity.PaymentResult;
import com.wechat.utiltools.error.ToolsException;

import javax.servlet.http.HttpServletRequest;

public interface WeChatPaymentService {

    // 查询
    PaymentResult queryDetail(String orderId);
    // 支付
    PaymentResult pay(String orderNumber, Double amount, String title, String description, Integer userId, HttpServletRequest request);
    //退款订单号不能和支付订单相同
    PaymentResult refund(String orderNumber, String refundNumber, Double payAmount, Double refundAmount, String title, String description, String queryId);

    // 支付
    PaymentResult appPay(String orderNumber, Double amount, String title, String description, Integer userId, HttpServletRequest request) throws ToolsException;

}
